package com.example.demo;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.alibaba.nacos.spring.context.annotation.discovery.EnableNacosDiscovery;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
//读取nacos指定配置信息   由于nacos比较消耗内存，不使用时请注释并关闭服务
@NacosPropertySource(dataId = "example", autoRefreshed = true)
@EnableAsync
@SpringBootApplication
//配置nacos 服务注册与发现  由于nacos比较消耗内存，不使用时请注释并关闭服务
@EnableNacosDiscovery
//通过@EnableFeignClients注解开启对FeignClients的扫描
@EnableFeignClients

//@MapperScan("com.example.demo.dao")
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
